<?php
class Portlet extends CWidget {
    public $title;
    public $visible=true;
    public function run() {
        if(false !== $this->visible) {
            $this->_renderContent();
        }
    }
    protected function _renderContent() {

    }
}